package com.userrequestdtos;

import java.util.Hashtable;

import org.ksoap2.serialization.KvmSerializable;
import org.ksoap2.serialization.PropertyInfo;

public class ViewingCategoryAndTitleDTO implements KvmSerializable{

	// declaring variables
	
	public String v_useremail;
	public String notetype;
	// default constructor 
	
	public ViewingCategoryAndTitleDTO()
	{
		// complusory
	}
	public ViewingCategoryAndTitleDTO(String uname,String ftype)
	{
		v_useremail=uname;
		notetype=ftype;
	}

	@Override
	public Object getProperty(int index) {
		// TODO Auto-generated method stub
		switch (index) {
		case 0:   
			return v_useremail;
		case 1:
			return notetype;
		default:
			break;
		}
		return null;
	}

	@Override
	public int getPropertyCount() {
		// TODO Auto-generated method stub
		return 2;
	}

	@Override
	public void getPropertyInfo(int index, Hashtable arg1, PropertyInfo info) {
		// TODO Auto-generated method stub
		switch (index) {
		case 0:
			info.type=PropertyInfo.STRING_CLASS;
			info.name="v_useremail";
			break;
		case 1:
			info.type=PropertyInfo.STRING_CLASS;
			info.name="notetype";
			break;
		default:
			break;
		}
	}

	@Override
	public void setProperty(int index, Object value) {
		// TODO Auto-generated method stub
		switch (index) {
		case 0:
			    v_useremail=value.toString();
			break;
		case 1:
			  notetype=value.toString();
			  break;
		default:
			break;
		} 
	}
}